class Web extends Sprite {
  constructor(type) {
    if (type > 7 || type < 1) {
      throw new Error('渔网的类型不对，范围为1到7。');
    }

    let webData = __g_resources.web[`web${type}`];
    super({
      image:   webData.image,
      sx:      webData.frame.x,
      sy:      webData.frame.y,
      w:       webData.frame.w,
      h:       webData.frame.h
    });
    this.keep = false;  //如果渔网打死鱼了，那么渔网留下，否则打完就消失
  }
}
